package com.zycx.system.user.entity;

import lombok.Data;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * Description:
 * Created by zycx on 2018-12-04 21:00
 * Created with IntelliJ IDEA.
 */
@Data
@ToString
@Table(name = "t_sys_user")
public class User implements Serializable {

    @Id
    private String id;

    @Column(name = "user_name")
    private String userName;

    @Column(name = "pass_word")
    private String passWord;

    /**  用户名字 */
    private String name;

    /**  头像 */
    @Column(name = "Head_portrait")
    private String headPortrait;

    /**  状态:  0-有效;1-冻结 */
    @Column(name = "status")
    private String status;

    /**  是否是管理员
     *      1-是
     *      0-不是
     * */
    @Column(name = "super_admin")
    private String superAdmin;

    @Column(name = "ctr_time")
    private Date ctrTime;

    @Column(name = "ctr_user_name")
    private Date ctrUserName;

    @Column(name = "ctr_user_id")
    private String ctrUserId;

    @Column(name = "up_time")
    private Date upUserTime;

    @Column(name = "up_user_name")
    private Date upUserName;

    @Column(name = "up_user_id")
    private String upUserId;



}
